extends "../weiqita-3/weiqita-3.gd"


var baseId = ""
var upText1 = "动能打击伤害提高35%"
var upText2 = "不稳定火力不再触发半伤效果"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每次造成伤害时，随机产生[半伤、全伤、毁灭打击]效果，其中毁灭打击效果为真实伤害", "不稳定火力")

func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	match sys.rndRan(1, 3):
		1:
			if upgraded != 2:
				atkInfo.hurtVal *= 0.5
		3:
			atkInfo.hurtType = sys.HurtType.REAL
			atkInfo.hurtVal = atkInfo.atkVal

func upgrade():
	.upgrade()
	if upgraded == 1:
		p3 = 1.35